#pragma once

#include <iostream>
#include <vector>

// 函数指针
typedef void (*task_t)();

void task1()
{
    std::cout << "更新日志" << std::endl;
}
void task2()
{
    std::cout << "装填武器子弹" << std::endl;
}
void task3()
{
    std::cout << "检测软件是否更新,如果需要，就提示用户" << std::endl;
}
void task4()
{
    std::cout << "用户打出子弹,更新子弹数量" << std::endl;
}

void LoadTask(std::vector<task_t> *tasks)
{
    tasks->push_back(task1);
    tasks->push_back(task2);
    tasks->push_back(task3);
    tasks->push_back(task4);
}